<template>
    <canvas id="video-canvas" style="height: 100%; width:100%"></canvas>
</template>

<script>
// import {PATH,PATH2} from '../../server/constant.js'
export default {
    mounted () {
        var canvas = document.getElementById('video-canvas')

        var player = new JSMpeg.Player(this.path, {canvas: canvas})

    },

    data(){
        return{
            path:'ws://127.0.0.1:8082',   //你拉取视频源地址

        }
    },
    methods:{


    }
};
</script>
